<?php
class page_index Extends page_Base {

    var $access_min = 0;
    
    public function index() {
        if(!isset($_SESSION['uid'])) {
            $this->tp->set('omg',' ! This is omg variable ! ');
            $z = $this->tp->apply('index');
            $this->tp->g_add('content',$z);
        }
        else {
            $cfg = $this->registry->get('config');
            header("Location: {$cfg['misc']['site_url']}?p=user/home");
        }
    }

    public function getSettings() {
        
    }

}
?>